import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

//引入element ui & css
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
//Vue使用element插件
Vue.use(ElementUI)

Vue.config.productionTip = false

//引入index.scss 全局样式
import './assets/css/index.scss'
//引入字体图标
import './assets/fonts/iconfont.css'

//引入过滤器函数
import * as filters from '@/filters'
//循环注册全局过滤器
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})

//引入权限文件
import './permission'

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
